<template>
  <div style="padding: 20px;">
    <div class="headerBoxList">
      <svg t="1686621390781" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11295" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24"><path d="M288 384v-74.666667c0-123.722667 100.266667-224 224-224s224 100.224 224 224v74.666667h10.677333C811.445333 384 864 436.597333 864 501.333333v320c0 64.821333-52.469333 117.333333-117.322667 117.333334H277.333333C212.554667 938.666667 160 886.069333 160 821.333333V501.333333c0-64.821333 52.469333-117.333333 117.322667-117.333333H288z m64 0h320v-74.666667c0-88.426667-71.605333-160-160-160-88.384 0-160 71.626667-160 160v74.666667zM224 501.333333v320c0 29.397333 23.914667 53.333333 53.322667 53.333334H746.666667A53.269333 53.269333 0 0 0 800 821.333333V501.333333c0-29.397333-23.914667-53.333333-53.322667-53.333333H277.333333A53.269333 53.269333 0 0 0 224 501.333333z" fill="#000000" p-id="11296"></path></svg>
      <span style="margin-left: 10px">自动申请密码 <span style="font-size: 15px;" v-if="total!==0">({{ total }}行)</span></span>
    </div>
    <div class="content">
      <p style="border-bottom: 1px solid #ebebeb;" v-for="(item,index) in list" :key="index">· {{ item }}</p>
    </div>
  </div>
</template>

  <script>
  import { getRxTmpPathApi } from '@/api/phoneInfo/index'

  export default {
      name:'autoPass',
      data(){
          return{
              list:[],
              total:0
          }
      },
      mounted(){
      },
      created(){
          this.init();
      },
      methods:{
      init(){
          
          let node = this.$route.params.nodeData.data;
      let dataJson = {
        "proof_num":node.proof_num,
        "rxTmpPath":'/'+node.subtype
      }
      getRxTmpPathApi(dataJson).then(res=>{
        let str = res.data;
        let arr = str.split("\n");
          this.list = arr;
          this.total = arr.length;
      })

      },
  
  
      }
  
  }
  </script>
  
  <style scoped>
    .headerBoxList {
      width: 100%;
      height: 50px;
      border-bottom: 1px solid #d2d2d2;
      display: flex;
      align-items: center;
      font-size: 18px;
      font-weight: bold;
    }
    .content{
      height: 80vh;
      overflow-y: auto;
      padding-left:50px;
      margin-top: 20px;
    }
    @media screen and (min-width: 2360px) {
      .content{
      height:67vh;
      overflow-y: auto;
  
    }
    }
  </style>